package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBaseResidentDao;
import com.fqgj.xjd.user.entity.UserBaseResidentEntity;
import org.springframework.stereotype.Repository;

/**
* User: zhangxingyun
* Date: 2017-07-20
* Time: 18:38:53.034
*/

@Repository
public class UserBaseResidentDaoImpl extends AbstractBaseMapper<UserBaseResidentEntity> implements UserBaseResidentDao {
    @Override
    public int updateByUserCode(UserBaseResidentEntity entity) {
        return getSqlSession().update(getStatement("updateByUserCode"), entity);
    }

    @Override
    public UserBaseResidentEntity selectByUserCode(String userCode) {
        return getSqlSession().selectOne(getStatement("selectByUserCode"), userCode);
    }
}